package BC65_箭形图案;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int num = sc.nextInt();
            for (int i = 0; i < num; i++) {
                for (int j = 0; j < (num - i) * 2; j++) {
                    System.out.printf(" ");
                }
                for (int j = 0; j < i + 1; j++) {
                    System.out.printf("*");
                }
                System.out.println();
            }
            for (int i = 0; i < num + 1; i++) {
                System.out.printf("*");
            }
            System.out.println();
            for (int i = 0; i < num; i++) {
                for (int j = 0; j < (i + 1) * 2; j++) {
                    System.out.printf(" ");
                }
                for (int j = 0; j < num - i; j++) {
                    System.out.printf("*");
                }
                System.out.println();
            }
        }
    }
}
